<!--包含头部文件-->
{include file="public/header" /}
<body>
<nav class="breadcrumb"></nav>
<div class="page-container">

  
  <div class="mt-20">
    <table class="table table-border table-bordered table-bg table-hover table-sort">
      <thead>
        <tr class="text-c">
          <th width="40">ID</th>
          <th width="150">标题</th>
          <th width="150">图片</th>
          <th width="100">url</th>
          <th width="100">描述</th>
          <th width="150">新增时间</th>
          <th width="30">发布状态</th>
          <th width="30">操作</th>
        </tr>
      </thead>
      <tbody>
        {volist name="banners" id="vo"}
        <tr class="text-c">
          <td>{$vo.id}</td>
          <td>{$vo.title}</td>
          <td><img width="180" class="picture-thumb" src="{$vo.image}"></td>
          <td><a href="{$vo.url}" target="_blank">{$vo.url}</a></td>
          <td>{$vo.description}</td>
          <td>{$vo.create_time|date="Y-m-d H:i", ###}</td>

          <td class="td-status"><a href="{:url('banner/status',['id'=>$vo.id, 'status'=>$vo.status==1?0:1])}" title="点击修改状态">{$vo.status|status}</a></td>
          <td class="td-manage"><a style="text-decoration:none" class="ml-5" onClick="o2o_s_edit('编辑','{:url('banner/edit', ['id'=>$vo.id])}','',300)" href="javascript:;" title="编辑"><i class="Hui-iconfont">&#xe6df;</i></a> <a style="text-decoration:none" class="ml-5" onClick="o2o_del('{:url('banner/status', ['id'=>$vo.id, 'status'=>-1])}')" href="javascript:;" title="删除"><i class="Hui-iconfont">&#xe6e2;</i></a></td>
        </tr>
        {/volist}
        
      </tbody>
    </table>
  </div>

</div>
<!--包含头部文件-->
{include file="public/footer" /}
